<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="global.jsp"></jsp:include>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<style type="text/css">
	body{
		background: #86B4CC;
	}
	li{
		list-style: none;
		margin: 10px auto;
		font-size: 20px;
	}
	li font{
		font-size: 24px;
		font-weight: bold;
	}
	font{
		color: red;
	}
	a{
		text-decoration: none;
		color: blue;
		margin: auto 7px;
	}
	a:HOVER{
		text-decoration: underline;
	}
	#content{
		width: 980px;
		margin: 50px auto;
		text-align: center;
	}
</style>
</head>
<body>
	<div id="content">
<!-- -----------------------------------事业部领导-------------------------------------------- -->
<!-- -----------------------------------计划调度岗-------------------------------------------- -->
<!-- -----------------------------------质量控制岗-------------------------------------------- -->
		<div>
			<div>
				<ul>
					<c:if test="${null != processes }">
						<li>待审批业务有<font>${processes }</font>条 <a href="javascript: void(0)" onclick="changePage('业务审批', 'processList')">去查看>></a></li>
					</c:if>
					<c:if test="${null != novelMessages }">
						<li>收件箱新信息有<font>${novelMessages }</font>条 <a href="javascript: void(0)" onclick="changePage('收件箱', 'myInbox')">去查看>></a></li>
					</c:if>
					
	<!-- -----------------------------------事业部成员-------------------------------------------- -->
					<c:if test="${null != novelProjectTasks }">
						<li>未领取任务有<font>${novelProjectTasks }</font>条 <a href="javascript: void(0)" onclick="changePage('我的任务', 'myProjectTaskmgr')">去查看>></a></li>
					</c:if>
					<c:if test="${null != workingProjectTasks }">
						<li>未完成任务有<font>${workingProjectTasks }</font>条 <a href="javascript: void(0)" onclick="changePage('我的任务', 'myProjectTaskmgr')">去查看>></a></li>
					</c:if>
				</ul>
			</div>
			<div style="width: 100%; height: 400px; text-align: left;">
				<h2>系统公告</h2>
				<div>
					<c:forEach items="${publicNotices }" var="item" >
						<p>
							${item.content }
							<c:if test="${item.publishTime >= newDate }"><font style="margin-left: 5px;">新</font></c:if>
							 <a href="javascript: void(0)" onclick="changePage('系统公告', 'publicNotice')">去查看>></a>
						</p>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		function changePage(text, url){
			top.addTab(text, url);
		}
	</script>
</body>
</html>